package com.lagou.repository;



import com.lagou.entity.COrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface COrderRepository extends JpaRepository<COrder,Long> {

    @Query(nativeQuery = true,value = "select t.id,t.user_id,t.company_id from c_order t where t.id=:id")
    public Object findPositionsById(@Param("id") long id);
}
